/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufba.lasid.v1.jitclouds.mda.datatypes.process;

/**
 *
 * @author aliriosa
 */
public class BasicOperatingSystem implements IOperatingSystem{

    private String idOS = null;
    private Processtable OStable = new Processtable();
    @Override
    public String getID() {
        return idOS;
    }

    @Override
    public void setID(String idOS) {
        this.idOS = idOS;
    }

    @Override
    public ProcessList getProcesses() {
        
        ProcessList processes = new ProcessList();
        processes.addAll(OStable.values());
        
        return processes;
                
    }

    @Override
    public IProcess getProcess(String idProcess) {
        return OStable.get(idProcess);
    }

    @Override
    public IProcess newProcess() {
        return new BasicProcess();
    }

    @Override
    public void killProcess(String idProcess) {
        OStable.remove(idProcess);
    }

    @Override
    public String getDescription() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setDescription(String description) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
